#pragma once

#include "pch.h"
#include "prerequisites.h"

class c_vertex_buffer9
{
public: 
    c_vertex_buffer9(unsigned int length, unsigned long usage, D3DPOOL pool); 
    ~c_vertex_buffer9(); 
    
    void* lock(unsigned int offset, unsigned int size, unsigned long flags);
    bool unlock(); 
    
    d3d9_vb_ptr& get_d3d9_vb_ptr() { return m_d3d9_vb; }

private: 
    d3d9_vb_ptr m_d3d9_vb; 
};

//////////////////////////////////////////////////////////////////////////

class c_index_buffer9
{
public:
    c_index_buffer9(unsigned int length, unsigned long usage, D3DFORMAT format, D3DPOOL pool); 
    ~c_index_buffer9(); 
    
    d3d9_ib_ptr& get_d3d9_ib_ptr() { return m_d3d9_ib; }

private:
    d3d9_ib_ptr m_d3d9_ib;
};